package com.google.code.jbauble.mvc.render;

import java.io.IOException;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.google.code.jbauble.mvc.Result;
import com.google.code.jbauble.mvc.ViewRender;

public class OutputViewRender implements ViewRender {
	@Override
	public void render(HttpServletRequest request,
			HttpServletResponse response, Result result, Map exts) {
		try {
			response.setContentType("text/html");
			response.getWriter().print(result.getParameters().toString());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
